/**
 * NearShop
 * BannerAction.java
 * com.android.nearshop.io.protocol.in
 * 
 */
package com.wise.site.protocol.action;

import com.wise.site.protocol.base.SoapAction;
import com.wise.site.protocol.result.AdvResult;

import android.util.Log;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-8-11
 * @see : 获取广告信息。
 * @Copyright : copyrights reserved by personal 2007-2012
 **********************************************************/
public class BannerAction extends SoapAction<AdvResult>
{
    public static enum ADV_TYPE
    {
        /** 二级页面及详情*/
        SUB,
        /** 首页横幅广告*/
        MAIN,
        /** 启动页面*/
        START,
        /** 不显示*/
        NONE
    }
       
    /**
     * 获取广告信息。
     * @param type 
     */
    public BannerAction()
    {
        super(ACTION_TYPE.ACTION_COMMON, "adinfo");
    }
    

    
   
    /* (non-Javadoc)
     * @see com.android.nearshop.io.protocol.in.SoapAction#parseJson(java.lang.String)
     */
    @Override
    protected AdvResult parseJson(String response) throws Exception
    {
    	AdvResult res = new AdvResult();
        res.parseData(response);
        return res;
    }

}
